package com.songlanyun.modules.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.order.entity.ChildOrder;
import com.songlanyun.modules.order.entity.SaleServiceGoodsCard;
import com.songlanyun.modules.order.entity.SaleServiceGoodsVerificationRecord;
import com.songlanyun.modules.order.model.dto.CheckServiceGoodsDTO;
import com.songlanyun.modules.order.model.dto.RenewalServiceGoodsDTO;

import java.util.List;
import java.util.Map;

/**
 * 服务商品订单核销使用记录
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2021-03-02 16:01:16
 */
public interface SaleServiceGoodsVerificationRecordService extends IBaseService<Long, SaleServiceGoodsVerificationRecord> {

    List<SaleServiceGoodsVerificationRecord>  loadByServiceGoodsCardId(Long serviceGoodsCardId);
    List<SaleServiceGoodsVerificationRecord>  loadByOrderIdAndChildId(Long orderId,Long childOrderId);

    ChildOrder check(String adminName, Long shopId, CheckServiceGoodsDTO dto);

    void renewal(Long shopId, RenewalServiceGoodsDTO dto);

     void verifyServiceOrder(Long shopId, SaleServiceGoodsCard saleServiceGoodsCard,ChildOrder childOrder);

}

